package com.example.demofdfs.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel(value = "menu", description = "用户的菜单")
public class Menu {

	@ApiModelProperty(value = "菜单id", required = false)
	private Integer id;
	@ApiModelProperty(value = "菜单名称", required = true)
	private String name;
	@ApiModelProperty(value = "菜单上级(父级)节点id, 根为0", required = true)
	private Integer parentId;
	@ApiModelProperty(value = "菜单权限", required = true)
	private String permissions;
	@ApiModelProperty(value = "上级菜单", required = false)
	private Menu parent;
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getParentId() {
		return parentId;
	}
	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}
	public String getPermissions() {
		return permissions;
	}
	public void setPermissions(String permissions) {
		this.permissions = permissions;
	}
	public Menu getParent() {
		return parent;
	}
	public void setParent(Menu parent) {
		this.parent = parent;
	}
	
	
}
